#include<iostream>
#include<string.h>
#include <sys/types.h>
#include<sys/stat.h>
#include<unistd.h>
#include<fcntl.h>
#include<stdio.h>
using namespace std;
int main()
{
	chdir("config");
	int fd=open("hotel.conf",O_RDONLY);
	if(0>fd)
	{
		cout<<"文件打开失败"<<endl;
	}
	char buf[2456]={};
	read(fd,buf,sizeof(buf));
	int a,b,c;
	sscanf(buf,"%d %d %d",&a,&b,&c);
	cout<<a<<" "<<b<<" "<<c<<endl;
}
